package com.pxst.bank.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pxst.req.BasePageRsp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@ApiModel("暂停时间表设定-请求类")
@Data
public class ServiceTimeReq extends BasePageRsp {

    @ApiModelProperty(value = "币种", required = true)
    @NotBlank(message = "币种不能为空")
    private String currency;

    @ApiModelProperty(value = "可用银行id")
    private Long availableBankId;

    @ApiModelProperty(value = "类型 1: Bank 2: Route (Bank) 3: Route (FI) 4: Route(QR FI)")
    private Integer type;

    @ApiModelProperty(value = "状态 0: 未启用 1: 启用")
    private Integer status;

    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date startDatetime;

    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date endDatetime;
}
